How to display formatted text in C